package org.csu.myPetStore.service;

import org.csu.myPetStore.persistence.HotDAO;
import org.csu.myPetStore.persistence.impl.HotDAOImpl;

public class HotService {

    private HotDAO hotDAO;

    public HotService(){
        hotDAO = new HotDAOImpl();
    }

    public String getHotGoods(){
        return hotDAO.getHotGoods();
    };


    public int getGoodsCount(String goods){
        return hotDAO.getGoodsCount(goods);
    };

    public void updateGoodsByUser(String username){
        hotDAO.updateGoodsByUser(username);
    }

}
